<%-- 
    Document   : Administration
    Created on : Oct 17, 2012, 11:07:30 AM
    Author     : James ASHTON
--%>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url="header.jsp"/>
<div id="header"><div id="visuel"><p>Archives des évaluations</p></div></div>
<c:if test="${!empty param.submit}">
    <div class="alert alert-info">
        <b>Modifications enregistrées :</b> Nous avons bien pris en compte la modification. 
    </div>
</c:if>
<table class="table">
    <thead>
    <th>Déposant</th>
    <th>Colloque</th>
    <th>Résumé</th>
    <th>Pertinence</th>
    <th>Importance</th>
    <th>Lisibilité</th>
    <th>Décision Finale</th>
    <th>Editer</th>
</thead>
<tbody>
    <c:forEach var="evaluation" items="${evaluations}">
        <tr>
            <td>${evaluation.expose.utilisateur.utilisateurnom} ${evaluation.expose.utilisateur.utilisateurprenom}</td>
            <td>${evaluation.expose.colloque.colloquenom}</td>
            <td><a href="?evaluation_id=${evaluation.evalid}">${evaluation.expose.exposeresume}</td>
            <td>${evaluation.evalpertinence}</td>
            <td>${evaluation.evalimportance}</td>
            <td>${evaluation.evallisibilite}</td>
            <td>${evaluation.evalfinale}</td>
            <td><a href="?evaluation_id=${evaluation.evalid}"><i class="icon-edit"></i></td>
        </tr>
    </c:forEach>
</tbody>
</table>
<c:if test="${!empty param.evaluation_id}">
    <form class="form-horizontal well" action="EvaluerDepotArchives" method="post">
        <h3><c:out value="${evaluation_select.expose.exposeresume}"/> - <c:out value="${evaluation_select.utilisateur.utilisateurnom}"/> <c:out value="${evaluation_select.utilisateur.utilisateurprenom}"/></h3>
        <div class="control-group">
            <label class="control-label">Pertinence</label>
            <div class="controls">
                <label class="radio inline"><input type="radio" name="Pertinence" id="Pertinence1" value="1" ${evaluation_select.evalpertinence == 1 ? 'checked' : ''}>1</label>
                <label class="radio inline"><input type="radio" name="Pertinence" id="Pertinence2" value="2" ${evaluation_select.evalpertinence == 2 ? 'checked' : ''}>2</label>
                <label class="radio inline"><input type="radio" name="Pertinence" id="Pertinence3" value="3" ${evaluation_select.evalpertinence == 3 ? 'checked' : ''}>3</label>
                <label class="radio inline"><input type="radio" name="Pertinence" id="Pertinence4" value="4" ${evaluation_select.evalpertinence == 4 ? 'checked' : ''}>4</label>
                <label class="radio inline"><input type="radio" name="Pertinence" id="Pertinence5" value="5" ${evaluation_select.evalpertinence == 5 ? 'checked' : ''}>5</label>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Importance</label>
            <div class="controls">
                <label class="radio inline"><input type="radio" name="Importance" id="Importance1" value="1" ${evaluation_select.evalimportance == 1 ? 'checked' : ''}>1</label>
                <label class="radio inline"><input type="radio" name="Importance" id="Importance2" value="2" ${evaluation_select.evalimportance == 2 ? 'checked' : ''}>2</label>
                <label class="radio inline"><input type="radio" name="Importance" id="Importance3" value="3" ${evaluation_select.evalimportance == 3 ? 'checked' : ''}>3</label>
                <label class="radio inline"><input type="radio" name="Importance" id="Importance4" value="4" ${evaluation_select.evalimportance == 4 ? 'checked' : ''}>4</label>
                <label class="radio inline"><input type="radio" name="Importance" id="Importance5" value="5" ${evaluation_select.evalimportance == 5 ? 'checked' : ''}>5</label>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Lisibilité</label>
            <div class="controls">
                <label class="radio inline"><input type="radio" name="Lisibilite" id="Lisibilite1" value="1" ${evaluation_select.evallisibilite == 1 ? 'checked' : ''}>1</label>
                <label class="radio inline"><input type="radio" name="Lisibilite" id="Lisibilite2" value="2" ${evaluation_select.evallisibilite == 2 ? 'checked' : ''}>2</label>
                <label class="radio inline"><input type="radio" name="Lisibilite" id="Lisibilite3" value="3" ${evaluation_select.evallisibilite == 3 ? 'checked' : ''}>3</label>
                <label class="radio inline"><input type="radio" name="Lisibilite" id="Lisibilite4" value="4" ${evaluation_select.evallisibilite == 4 ? 'checked' : ''}>4</label>
                <label class="radio inline"><input type="radio" name="Lisibilite" id="Lisibilite5" value="5" ${evaluation_select.evallisibilite == 5 ? 'checked' : ''}>5</label>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Décision finale</label>
            <div class="controls">
                <label class="radio inline"><input type="radio" name="DecisionFinale" id="DecisionFinale1" value="1" ${evaluation_select.evalfinale == 1 ? 'checked' : ''}>1</label>
                <label class="radio inline"><input type="radio" name="DecisionFinale" id="DecisionFinale2" value="2" ${evaluation_select.evalfinale == 2 ? 'checked' : ''}>2</label>
                <label class="radio inline"><input type="radio" name="DecisionFinale" id="DecisionFinale3" value="3" ${evaluation_select.evalfinale == 3 ? 'checked' : ''}>3</label>
                <label class="radio inline"><input type="radio" name="DecisionFinale" id="DecisionFinale4" value="4" ${evaluation_select.evalfinale == 4 ? 'checked' : ''}>4</label>
                <label class="radio inline"><input type="radio" name="DecisionFinale" id="DecisionFinale5" value="5" ${evaluation_select.evalfinale == 5 ? 'checked' : ''}>5</label>
            </div>
        </div>
        <div class="form-actions">
            <input type="hidden" name="evaluation_id" value="<c:out value="${evaluation_select.evalid}"/>">
            <input type="submit" class="btn btn-primary" value="Valider"/>
        </div>
    </form>
</c:if>
<c:import url="footer.jsp"/>